ViewGroupCompat

Helper for accessing features in ViewGroup.

Properties

Link copied to clipboard
This constant is a layoutMode.
Link copied to clipboard
This constant is a layoutMode.

Functions

Link copied to clipboard
open fun getLayoutMode(@NonNull group: @NonNull ViewGroup): Int
Returns the basis of alignment during layout operations on this ViewGroup: either LAYOUT_MODE_CLIP_BOUNDS or LAYOUT_MODE_OPTICAL_BOUNDS.
Link copied to clipboard
open fun getNestedScrollAxes(@NonNull group: @NonNull ViewGroup): Int
Return the current axes of nested scrolling for this ViewGroup.
Link copied to clipboard
open fun installCompatInsetsDispatch(@NonNull root: @NonNull View)
Installs a custom View.OnApplyWindowInsetsListener which dispatches WindowInsets to the given root and its descendants in a way compatible with Android R+ that consuming or modifying insets will only affect the descendants.
Link copied to clipboard
open fun isTransitionGroup(@NonNull group: @NonNull ViewGroup): Boolean
Returns true if this ViewGroup should be considered as a single entity for removal when executing an Activity transition.
Link copied to clipboard
Called when a child has requested sending an AccessibilityEvent and gives an opportunity to its parent to augment the event.
Link copied to clipboard
open fun setLayoutMode(@NonNull group: @NonNull ViewGroup, mode: Int)
Sets the basis of alignment during the layout of this ViewGroup.
Link copied to clipboard
Enable or disable the splitting of MotionEvents to multiple children during touch event dispatch.
Link copied to clipboard
open fun setTransitionGroup(@NonNull group: @NonNull ViewGroup, isTransitionGroup: Boolean)
Changes whether or not this ViewGroup should be treated as a single entity during Activity Transitions.